package priv.abadstring.study.haoke.dubbo.service;

import priv.abadstring.study.haoke.dubbo.entity.HouseResources;
import priv.abadstring.study.haoke.dubbo.dto.PageInfo;

/**
 * HouseResourcesService
 *
 * @author aBadString
 * @date 2021-06-15 15:19:06
 */
public interface HouseResourcesService {
    /**
     * 新增房源
     * @param houseResources 房源信息
     * @return -1: 输入的参数不符合要求
     *          0: 数据插入数据库失败
     *          1: 成功
     */
    int saveHouseResources(HouseResources houseResources);

    PageInfo<HouseResources> listHouseResources(int page, int pageSize, HouseResources queryCondition);

    HouseResources getById(Long id);

    boolean updateHouseResources(HouseResources houseResources);
}
